/*
 * (c) 2014 Virtusa Corporation.
 * All Rights Reserved
 */
package ead.cs.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 *
 * @author cjayawickrema
 */
@Document(collection = "alerts")
public class Alert {

    public static final String DANGER = "danger";
    public static final String INFO = "info";
    public static final String WARN = "warning";
    public static final String SUCCESS = "success";

    @Id
    private String id;
    private String type;
    private String title;
    private String message;
    private Date timestamp;

    public Alert(String type, String title, String message, Date timestamp) {
        this.type = type;
        this.title = title;
        this.message = message;
        this.timestamp = timestamp;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

}